<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>学生个人中心</title>
    <link th:href="@{/layui/css/layui.css}" rel="stylesheet"/>

    <style type="text/css">

        table {
            margin-left: 3cm;
            margin-top: 1cm;

            width: 18cm;
            height: 300px;


        }

        table.gridtable {
            font-family: verdana, arial, sans-serif;
            font-size: 100%;
            color: #333333;
            border-width: medium;
            border-color: #666666;
            border-collapse: collapse;
            border-style: solid;


        }

        table.gridtable td {
            border-width: medium;
            padding: 8px;
            border-color: #666666;
            background-color: #ffffff;
            border-style: solid;
            width: 100px;

            text-align: center;


        }

        .baseMessage {

        }

        .baseMessage p {
            font-family: Arial, Helvetica, sans-serif;
            font-size: 200%;
            margin-left: 2cm;
            margin-top: 1cm;

        }

        .baseMessage2 {
            font-weight: 800;
            width: 500px;
            height: 50px;
            font-size: 14px;
            float: left;
            margin-left: 10px;
            padding-left: 10px;

        }

        .baseMessage2 span {

            font-weight: 500;
        }


        input {

            width: 300px;


        }

        button {
            margin-left: 1190px;
            width: 95px;
            height: 45px;
            border-radius: 5px;
            color: white;
            background-color: #33CCFF;
        }


    </style>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">

    <!-- header -->
    <div th:replace="~{commons/header::header}"></div>

    <!-- left -->
    <div th:replace="~{commons/Left::left}"></div>
    <!-- 内容主体区域 -->
    <div class="layui-body">
        <div style="padding:20px 0px 45px 0px;">

            <div class="baseMessage">
                <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
                    <legend>审批返校申请</legend>
                    <div class="baseMessage2" th:each="StuleaveList:${StuleaveList}">
                        姓名:<span th:text="${StuleaveList.getStuName()}"></span>
                    </div>

                    <div class="baseMessage2" th:each="StuleaveList:${StuleaveList}">
                        学号:<span th:text="${StuleaveList.getStuId()}"></span>
                    </div>
                    <div class="baseMessage2" th:each="StuleaveList:${StuleaveList}">院系:
                        <span th:text="${StuleaveList.getStuCollege()}"></span>
                    </div>
                    <div class="baseMessage2" th:each="StuleaveList:${StuleaveList}">
                        专业:<span th:text="${StuleaveList.getStuMajor()}"></span>
                    </div>
                    <div class="baseMessage2" th:each="StuleaveList:${StuleaveList}">
                        班级:<span th:text="${StuleaveList.getStuClass()}"></span>
                    </div>

                    <div class="baseMessage2" th:each="StuleaveList:${StuleaveList}">
                        年级:<span th:text="${StuleaveList.getStuGrade()}"></span>
                    </div>
                    <div class="baseMessage2" th:each="StuleaveList:${StuleaveList}">
                        联系电话:
                        <span th:text="${StuleaveList.getStuPhone()}"></span>
                    </div>
                    <div class="baseMessage2" th:each="staffLeaveList:${staffLeaveList}">
                        去向:
                        <span th:text="${staffLeaveList.getLeaveDestination()}"></span>
                    </div>
                    <div class="baseMessage2" th:each="staffLeaveList:${staffLeaveList}">
                        申请时间:
                        <span th:text="${staffLeaveList.getLeaveApplytime()}"></span>
                    </div>
                    <div class="baseMessage2" th:each="staffLeaveList:${staffLeaveList}">
                        请假时间：
                        <span th:text="${staffLeaveList.getLeaveTime()}">到</span>
                        <span th:text="${staffLeaveList.getLeaveTime2()}"></span>
                    </div>
                    <div class="baseMessage2" th:each="staffLeaveList:${staffLeaveList}">
                        申请原因:
                        <span th:text="${staffLeaveList.getLeaveReason()}"></span>
                    </div>
                </fieldset>
                <form action="/staffCheckLeave_update" method="post">

                    <!--                    <div class="baseMessage2" th:each="getComeList2:${getComeList2}">-->
                    <!--                        返校时间:<input type="text" name="StaycomeTime" th:value="${getComeList2.getStaycomeTime()}">-->
                    <!--                    </div>-->
                    <!--                    <div class="baseMessage2" th:each="getComeList2:${getComeList2}"-->
                    <!--                         th:if="${getComeList2.getStaycomeType()}==2">-->
                    <!--                        申请原因:<input type="text" name="StaycomeReason" th:value="${getComeList2.getStaycomeReason()}">-->
                    <!--                    </div>-->

                    <div class="baseMessage2" th:each="staffLeaveList:${staffLeaveList}">审批流程:
                        <select name="LeaveApplystate">
                            <option th:selected="${staffLeaveList.getLeaveApplystate()}=='1'" value="1" }>未审核</option>
                            <option th:selected="${staffLeaveList.getLeaveApplystate()}=='2'" value="2" }>已通过</option>
                            <option th:selected="${staffLeaveList.getLeaveApplystate()}=='4'" value="4" }>未通过</option>

                        </select>

                    </div>

                    <div class="baseMessage2" th:each="staffLeaveList:${staffLeaveList}">
                        <input type="hidden" name="num" th:value="${staffLeaveList.getLeaveNum()}">
                    </div>
                    <input type="submit" value="保存">
                </form>
            </div>
        </div>
    </div>
</div>
<script th:src="@{/layui/layui.js}"></script>
<script>
    //JavaScript代码区域
    layui.use('element', function () {
        var element = layui.element;
    });
</script>


</body>
</html>